<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

  defined('_JEXEC') or die('Retricted Access');
?>

<form name="adminForm" action="index.php" method="POST">
	<label><?php echo JText::_('Default language'); ?>:<?php echo JText::_('English'); ?></label>
		<table class="adminlist">
			<?php if($this->items){?>        	
	        	<tr>
	        		<th width="5%"><?php echo JText::_( 'Value' ); ?></th>
	        		<th width="20%"  class="title"><?php echo JText::_( 'Text' ); ?></th>
	        		<?php if (JRequest::getVar('field_id')!='ja_jobs_apply_type') {?> 
	        		<th>            		
	        			<?php echo JText::_('Action'); ?>
	        		</th>            		
	        		<?php } ?>
	        	</tr>
				
	        	<?php foreach ($this->items as $k=>$item){?>
				<tr>
					<td width="5%"><?php echo $item->value; ?></td>
	        		<td width="5%"><?php echo JText::_($item->text); ?></td>
	        		<?php if (JRequest::getVar('field_id')!='ja_jobs_apply_type') {?> 
	        		<td>     
	        			      		
	        			<input type="submit" value="<?php echo JText::_('Delete');?>" onclick="$('cid').value='<?php echo $item->id;?>';submitbutton('remove')" tabindex="<?php echo $k+2; ?>"/>
	        			
	        		</td>  
	        		<?php } ?>
				</tr>
				<?php }?>
			<?php }?>
			<tr>
        		<td width="5%"><input type="text" value="" name="value" size="25"/></td>
        		<td width="20%"><input type="text" value="" name="text" size="80"/></td>
        		<?php if (JRequest::getVar('field_id')!='ja_jobs_apply_type') {?> 
        		<td>            		
        			<?php if (JRequest::getVar('field_id')!='ja_jobs_apply_type') {?>
        			<input type="submit" value="<?php echo JText::_('Add'); ?>" onclick="submitbutton('save')" tabindex="1"/>
        			<?php } ?>
        			
        		</td> 
        		<?php } ?>           		
        	</tr>
		</table>
		
	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="field_id" value="<?php echo $this->field_id; ?>" />
	<input type="hidden" name="cid" value="" id="cid" />
	<input type="hidden" name="view" value="jacodes" />
	<input type="hidden" name="tmpl" value="component" />
	<input type="hidden" name="task" value="" />
	<?php echo JHTML::_( 'form.token' ); ?>	
 </form>
